Clover coverage report - Enterprise Web Services - 1.0
Coverage timestamp: Mon May 30 2005 17:10:32 CEST
file stats: LOC: 76   Methods: 9
NCLOC: 39   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
SEIOperationImpl.java - 90% 88.9% 89.5%
coverage coverage
 1   
 /*
 2   
  * Copyright 2001-2004 The Apache Software Foundation.
 3   
  * 
 4   
  * Licensed under the Apache License, Version 2.0 (the "License");
 5   
  * you may not use this file except in compliance with the License.
 6   
  * You may obtain a copy of the License at
 7   
  * 
 8   
  *      http://www.apache.org/licenses/LICENSE-2.0
 9   
  * 
 10   
  * Unless required by applicable law or agreed to in writing, software
 11   
  * distributed under the License is distributed on an "AS IS" BASIS,
 12   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13   
  * See the License for the specific language governing permissions and
 14   
  * limitations under the License.
 15   
  */
 16   
 
 17   
 package org.apache.geronimo.ews.ws4j2ee.context.impl;
 18   
 
 19   
 import org.apache.geronimo.ews.ws4j2ee.context.SEIOperation;
 20   
 
 21   
 import java.util.ArrayList;
 22   
 import java.util.HashMap;
 23   
 
 24   
 /**
 25   
  * @author Srinath Perera(hemapani@opensource.lk)
 26   
  * @see SEIOperation
 27   
  */
 28   
 public class SEIOperationImpl implements SEIOperation {
 29   
     private String methodName;
 30   
     private String returnType;
 31   
     private HashMap parameters = new HashMap();
 32   
     private ArrayList parmNames = new ArrayList();
 33   
     private ArrayList faults = new ArrayList();
 34   
 
 35  107
     public String getMethodName() {
 36  107
         return methodName;
 37   
     }
 38   
 
 39  67
     public ArrayList getParameterNames() {
 40  67
         return parmNames;
 41   
     }
 42   
 
 43  40
     public ArrayList getFaults() {
 44  40
         return faults;
 45   
     }
 46   
 
 47  40
     public void setMethodName(String methodName) {
 48  40
         this.methodName = methodName;
 49   
     }
 50   
 
 51  54
     public void addParameter(String type, String name) {
 52  54
         parmNames.add(name);
 53  54
         parameters.put(name, type);
 54   
     }
 55   
 
 56  0
     public void addFault(String name) {
 57  0
         faults.add(name);
 58   
     }
 59   
 
 60  67
     public String getReturnType() {
 61  67
         return returnType;
 62   
     }
 63   
 
 64  40
     public void setReturnType(String returnType) {
 65  40
         this.returnType = returnType;
 66   
     }
 67   
 
 68   
     /* (non-Javadoc)
 69   
      * @see org.apache.geronimo.ews.ws4j2ee.context.SEIOperation#getParameterTypes()
 70   
      */
 71  96
     public String getParameterType(String name) {
 72  96
         return (String) parameters.get(name);
 73   
     }
 74   
 
 75   
 }
 76